package com.rz.htk.message.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rz.core.common.model.PageEntity;
import com.rz.htk.order.entity.Commodity;
import com.rz.htk.order.entity.OrderTrack;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.List;

/**
 * 订单信息表
 */
@TableName(value = "sys_message")
public class Message extends PageEntity {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String commodityCode;//订单编号
    private Integer type ;//消息类型 0：全局消息，1：订单消息
    private Integer state ;//状态，0：未处理，1：已处理
    private String title; //标题
    private String rmk ; //内容
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime creationTime;
    /** 创建者 */
    private Integer crteOrderId;
    /** 订单创建者 */
    private Integer crteMngId;
    /** 状态 */
    private Integer delFlag;
    private Integer orderId;

    @TableField(exist = false)
    private String startTime;
    @TableField(exist = false)
    private String endTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCommodityCode() {
        return commodityCode;
    }

    public void setCommodityCode(String commodityCode) {
        this.commodityCode = commodityCode;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getRmk() {
        return rmk;
    }

    public void setRmk(String rmk) {
        this.rmk = rmk;
    }

    public LocalDateTime getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(LocalDateTime creationTime) {
        this.creationTime = creationTime;
    }

    public Integer getCrteMngId() {
        return crteMngId;
    }

    public void setCrteMngId(Integer crteMngId) {
        this.crteMngId = crteMngId;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Integer getCrteOrderId() {
        return crteOrderId;
    }

    public void setCrteOrderId(Integer crteOrderId) {
        this.crteOrderId = crteOrderId;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }
}
